﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace FlickrSL.Data
{
    [XmlType("photos")]
    public class PhotoCollection : List<Photo>
    {
        [XmlAttribute("page")]
        public Int32 Page { get; set; }

        [XmlAttribute("pages")]
        public Int32 Pages { get; set; }

        [XmlAttribute("perpage")]
        public Int32 PerPage { get; set; }

        [XmlAttribute("total")]
        public Int32 Total { get; set; }

        public PhotoCollection()
        {
        }

        public PhotoCollection(Int32 capacity)
            : base(capacity)
        {
        }

        public PhotoCollection(IEnumerable<Photo> photos)
            : base(photos)
        {
        }
    }
}
